package com.slf.engine.utils;

import java.util.regex.Pattern;

public class MyUtils {

	private static boolean isNumeric(String str){
	     Pattern pattern = Pattern.compile("[0-9]*");
	     return pattern.matcher(str).matches();   
	}
	
	public static String unicode2String(String unicodeStr){
		if("".equals(unicodeStr) || !isNumeric(unicodeStr)){
			return unicodeStr;
		}
		int v = Integer.parseInt(unicodeStr,10);  
        return String.valueOf((char) v);  
	  }
}
